package com.ag.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * TbMackupAnnex entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "TB_MACKUP_ANNEX", schema = "dbo", catalog = "AGDB")
public class TbMackupAnnex implements java.io.Serializable {

	// Fields

	private String maId;
	private TbEventmackup tbEventmackup;
	private String maName;
	private String maAddress;
	private String a;
	private String b;
	private String c;

	// Constructors

	/** default constructor */
	public TbMackupAnnex() {
	}

	/** minimal constructor */
	public TbMackupAnnex(String maId, String maName, String maAddress) {
		this.maId = maId;
		this.maName = maName;
		this.maAddress = maAddress;
	}

	/** full constructor */
	public TbMackupAnnex(String maId, TbEventmackup tbEventmackup,
			String maName, String maAddress, String a, String b, String c) {
		this.maId = maId;
		this.tbEventmackup = tbEventmackup;
		this.maName = maName;
		this.maAddress = maAddress;
		this.a = a;
		this.b = b;
		this.c = c;
	}

	// Property accessors
	@Id
	@Column(name = "MA_ID", unique = true, nullable = false, length = 10)
	public String getMaId() {
		return this.maId;
	}

	public void setMaId(String maId) {
		this.maId = maId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "EM_ID")
	public TbEventmackup getTbEventmackup() {
		return this.tbEventmackup;
	}

	public void setTbEventmackup(TbEventmackup tbEventmackup) {
		this.tbEventmackup = tbEventmackup;
	}

	@Column(name = "MA_NAME", nullable = false, length = 100)
	public String getMaName() {
		return this.maName;
	}

	public void setMaName(String maName) {
		this.maName = maName;
	}

	@Column(name = "MA_ADDRESS", nullable = false, length = 256)
	public String getMaAddress() {
		return this.maAddress;
	}

	public void setMaAddress(String maAddress) {
		this.maAddress = maAddress;
	}

	@Column(name = "A", length = 60)
	public String getA() {
		return this.a;
	}

	public void setA(String a) {
		this.a = a;
	}

	@Column(name = "B", length = 60)
	public String getB() {
		return this.b;
	}

	public void setB(String b) {
		this.b = b;
	}

	@Column(name = "C", length = 60)
	public String getC() {
		return this.c;
	}

	public void setC(String c) {
		this.c = c;
	}

}